public class Test2 {
    static void Swap(int x, int y) {
        int temp;
        temp = x;
        x = y;
        y = temp;
        System.out.println("x=" + x + ",y=" + y);
    }
        public static void main(String[] args){
        int n=10;
            System.out.println(n--);
            int x = 10, y = 20;
            Swap(x, y);
            System.out.println("x=" + x + ",y=" + y);
        }
}